package me.jiatao.jetpack.lifecycle;

import android.arch.lifecycle.Lifecycle;
import android.arch.lifecycle.LifecycleOwner;
import android.support.annotation.NonNull;
import android.util.Log;

/**
 * Created by JiaTao on 2018/9/30.
 * Email: 535318720@qq.com
 * Version: 1.0
 * Description:
 */
public class BasePresenter implements IPresenter {

    private static final String TAG = "***BasePresenter***";

    @Override
    public void onCreate(@NonNull LifecycleOwner owner) {
        Log.i(TAG, "onCreate");
    }

    @Override
    public void onDestroy(@NonNull LifecycleOwner owner) {
        Log.i(TAG, "onDestroy");
    }

    @Override
    public void onLifecycleChanged(@NonNull LifecycleOwner owner, @NonNull Lifecycle.Event event) {
        Log.i(TAG, "onLifecycleChanged--->" + event.toString());
    }
}
